export type DisModel = {
  issueId: string | number //id
  id: string | number //id
  totalCount: number //列表个数
  list: any //列表
  entityId: any //实体id
  workFlowList: any //流程人员
  workAttendanceUserScopeList: any //应用人员范围
  workAttendanceRule: any //基础信息
  fileList: any //附件
  calendarDtoList: any //日历
  remark: any
}

const api: ApiConfig = {
  // 收文列表
  receiveList: {
    method: 'GET',
    url: '/oa/receiveAndIssue/receiveIssueReceive/getMyReceiveList'
  },
  // 发文列表
  dispatchList: {
    method: 'GET',
    url: '/oa/receiveAndIssue/receiveIssueReceive/list'
  },
  // 发文详情
  dispatchInfo: {
    method: 'GET',
    url: '/oa/receiveAndIssue/receiveIssueReceive/info/:id'
  },
  // 发文签收详情
  dispatchSignInfo: {
    method: 'GET',
    url: '/oa/receiveAndIssue/receiveIssueReceive/getAllSignDetails'
  },
   // 发文撤回
   receiveIssueReceive: {
    method: 'GET',
    url: '/oa/receiveAndIssue/receiveIssueReceive/retractRevoke'
  },
  // 发文回收
  dispatchRecyle: {
    method: 'POST',
    url: '/oa/receiveAndIssue/receiveIssueReceive/retractIssue'
  },
  // 发文撤回
  dispatchRevoke: {
    method: 'POST',
    url: '/process/business/revokeProcessOrder'
  },
  // 新增发文
  dispatchAdd: {
    method: 'POST',
    url: '/oa/receiveAndIssue/receiveIssueReceive/save'
  },
  // 修改发文
  dispatchUpdate: {
    method: 'POST',
    url: '/oa/receiveAndIssue/receiveIssueReceive/update'
  },
  // 发文统计列表
  staticticsList: {
    method: 'GET',
    url: '/oa/receiveAndIssue/receiveIssueDetails/list'
  },
  // 类型
  parentCode: {
    method: 'GET',
    url: '/sys/dic/listByParentCode'
  },
  // 获取流程
  workFlow: {
    method: 'GET',
    url: 'process/getWorkFlow'
  },
  // 发文签收
  receiveSign: {
    method: 'POST',
    url: '/oa/receiveAndIssue/receiveIssueDetails/update'
  },
  // 收文详情
  receiveInfo: {
    method: 'GET',
    url: '/oa/receiveAndIssue/receiveIssueReceive/receiveInfo/:id'
  },
  // 发文回收详情
  recyleInfo: {
    method: 'GET',
    url: '/oa/receiveAndIssue/receiveIssueReceive/rateInfo/:id'
  },
  // 获取附件详情
  fjInfo: {
    method: 'GET',
    url: '/common/annexFile/info/:id'
  },
  // doc转pdf
  docToPdf: {
    method: 'POST',
    url: '/common/bigFile/uploader/docToPdf',
    responseType:'blob'
  }
}

export default api
